<div class="popup_body clearfix">
    <div class="tab_item" style="display:block;">
        <div class="ui_table">
            <form>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <input type="hidden" name="cabinetId" value='${cabinetId}'>
                    <tr>
                        <td align="right">充电温度区间：</td>
                        <td><input type='number' min="0" max="100" name="rpt" class="text easyui-validatebox" value="45" style="width: 60px" required/>
                            -<input type='number' min="0" max="100" name="pt" class="text easyui-validatebox" value="65" style="width: 60px" required/>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">风扇温度区间：</td>
                        <td><input type='number' min="0" max="100" name="fot" class="text easyui-validatebox" value="40" value="" style="width: 60px" required/>
                            -<input type='number' min="0" max="100" name="fst" class="text easyui-validatebox" value="50"  style="width: 60px" required/>
                        </td>
                    </tr>

                </table>
            </form>
        </div>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_red ok">确定</button>
    <button class="btn btn_border close">关闭</button>
</div>

<script>
    (function () {
        var win = $('#${pid}'), jform = win.find('form');
        var form = jform[0];
        win.find('button.ok').click(function () {
            jform.form('submit', {
                url: '${contextPath}/security/hdw/cabinet/update_temperature.htm',
                success: function (text) {
                    var json = $.evalJSON(text);
                <@app.json_jump/>
                    if (json.success) {
                        $.messager.alert('提示信息', '操作成功', 'info');
                        win.window('close');
                    } else {
                        $.messager.alert('提示信息', json.message, 'info');
                    }
                }
            });
        });
        win.find('button.close').click(function () {
            win.window('close');
        });
    })();
</script>


